using System;
using System.Collections.Generic;


namespace Gfw.Models.Account
{
	[Serializable]
	public partial class ActUserAccountinformation: IEquatable<ActUserAccountinformation>
	{

		#region Private Members

		private string _userid; 
		private decimal _cash; 
		private decimal _electronicmoney; 
		private int _status; 
		private int _version; 		
		#endregion

		#region Constructor

		public ActUserAccountinformation()
		{
			_userid = String.Empty; 
			_cash = 0; 
			_electronicmoney = 0; 
			_status = 0; 
			_version = 0; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Userid
		{
			get
			{ 
				return _userid;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Userid", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Userid", value, value.ToString());
				
				_userid = value;
			}
		}
			
		public virtual decimal Cash
		{
			get
			{ 
				return _cash;
			}
			set
			{
				_cash = value;
			}

		}
			
		public virtual decimal ElectronicMoney
		{
			get
			{ 
				return _electronicmoney;
			}
			set
			{
				_electronicmoney = value;
			}

		}
			
		public virtual int Status
		{
			get
			{ 
				return _status;
			}
			set
			{
				_status = value;
			}

		}
			
		public virtual int Version
		{
			get
			{ 
				return _version;
			}
			set
			{
				_version = value;
			}

		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

		public virtual bool Equals(ActUserAccountinformation other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._userid == other.Userid );
				   
		}

		#endregion
		
	}
}
